package Demo1.user;

import Demo1.Book.Booklist;
import Demo1.operation.IOperation;

public abstract class Users {
protected String name;//姓名
protected IOperation[] iOperations;//操作
    public Users(String name) {
        this.name = name;
    }
    public abstract int menu();//菜单
    public void doOperation(int choice, Booklist booklist){
        iOperations[choice].work(booklist);
    }
}
